package com.clkj.xiuzheng.dao;

import com.clkj.xiuzheng.pojo.shangcheng.CompanyCommisson;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

@Repository
public interface CompanyCommissonMapper extends Mapper<CompanyCommisson>, MySqlMapper<CompanyCommisson> {
    @Select("select c.*,p.company_name  from t_xz_companyCommisson c left join t_xz_productCompany p on p.company_id = c.company_id where c.company_id = #{companyId} ")
    List<CompanyCommisson> getCompanyCommison(Integer companyId);
}
